package org.lanqiao.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Setter
@Getter
@ToString
@EntityScan
public class User {
    //用户id
    private String userId;
    //用户邮箱
    @Email(message="验证邮箱格式")
    private String userEmail;
    //用户密码
    @Size(min = 1,max = 20)
    private String userPassword;
    //用户头像
    private String userHead;
    //用户昵称
    @NotNull(message = "昵称不能为空")
    @Size(min = 1, max = 10)
    private String userName;
    //用户余额
    private Double userBalance;
    //用户账号状态
    private Integer userStatus;

}